<?php
class ecMailInput extends ecFormElement
{
	public function __construct() {
		$this->regex = '#^[a-z0-9._-]+@[a-z0-9._-]{2,}\.[a-z]{2,4}$#';
	}

	public function getHtml()
	{
		return '<label for="'.$this->name.'">'.$this->label.'</label> : <input type="text" name="'.$this->name.'" id="'.$this->name.'" value="'.$this->value.'" maxlength="'.$this->maxlength.'" />';
	}
}
